{extend name="common/base"/}
<!-- 主体 -->
{block name="body"}
<form class="layui-form p-3">
	<table class="layui-table layui-table-form">
		<tr>
			<td class="layui-td-gray-2">汇率<font>*</font></td>
			<td>
				<input type="hidden" name="id" value="{$id}">
				<input type="text"  style="width:300px;" name="riyuan" lay-verify="required" autocomplete="off" placeholder="请输入汇率"
					lay-reqText="请输入汇率" class="layui-input" {notempty name="$config.riyuan" }
					value="{$config.riyuan}" {/notempty}>
			</td>
		</tr>
		<tr>
			<td class="layui-td-gray-2"></td>
			<td>
				<button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="webform">立即提交</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			</td>
		</tr>
	</table>
</form>
{/block}
<!-- /主体 -->

<!-- 脚本 -->
{block name="script"}
<script>
	const moduleInit = ['tool'];
	function gouguInit() {
		var form = layui.form, tool = layui.tool, upload = layui.upload;
		//监听提交
		form.on('submit(webform)', function (data) {
			tool.post("/admin/nav/read", data.field);
			layer.msg("操作成功");
			return false;
		});


	}
</script>
{/block}
<!-- /脚本 -->